<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jquery-study</title>
</head>
<!--<script src="js-ori2.js"></script>-->
<body>
<h1>welcome to use javascript</h1>
<div>div
    <p>ppp</p>
</div>
<script>
    var div = document.getElementsByTagName('div')[0];
    l('nodeType:' + div.nodeType);
    l('nodeValue:' + div.nodeValue);
    l('nodeName:' + div.nodeName);
    function l(msg) {
        console.log(msg);
    }
</script>

</body>
</html>